<?php
$dbhost = "localhost";
$dbuser = "fossilplot";
$dbpass = "fossilplot";
$dbname = "fossilplot";
mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($dbname) or die(mysql_error());



//$query = "SELECT genus_name FROM fossilplot.genus WHERE id like '1___';
//$query = "SELECT * FROM ajax_example";
$query = "SELECT * FROM genus where genus_name like 'a%'";

$qry_result = mysql_query($query) or die(mysql_error());


ob_flush(); flush();
	echo "	<select name=\"M\" size=5 multiple>";
//while($row = mysql_fetch_array($qry_result)){

	//echo "<option>".$row{'ae_name'}."</option>";
//}

while($row = mysql_fetch_array($qry_result)){

	echo "<option>".$row{'genus_name'}."</option>";
}

echo "</select>";

?>
